From 9588abed378fcff820298c3d69abe6f2b1384f87 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 27 May 2003 15:22:21 +0000 Subject: [PATCH] Don't free description twice when prefer_shortnames. From Ron. --- csv_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv_util.c b/csv_util.c index 9d2f7f530..2c2cba10f 100644 --- a/csv_util.c +++ b/csv_util.c @@ -782,7 +782,7 @@ xcsv_waypt_pr(const waypoint *wpt) if (shortname) xfree(shortname); - if (description) + if (description && description != shortname) xfree(description); index++; -- 2.30.2